package interview.Sorting;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


class Input{
	public static int getIntInput(){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));        
		int i=0;
		try {
			System.out.print("Enter Integer:");
			i = Integer.parseInt(br.readLine());
		} catch (IOException e) {
			e.printStackTrace();
		}
        catch(NumberFormatException nfe){
            System.err.println("Invalid Format!");
        }
        return i;
	}
}

public class Generic {
	public static void swap(int[] num,int i , int j){
		int temp =num[i];
		num[i]=num[j];
		num[j]=temp;
	}
	public static void printArray(int[] num){
		//System.out.println();
		for(int i =0;i<num.length;i++)
			System.out.print(num[i]+"  -->");
	}
}
